<form id="{$form.name}" name="{$form.name}">
<br/>
<div style="padding-left:35px;">

	<table ><tr><td>
		{if $form.icon !='' }
		<div class="form_icon" style="float:left;padding-right:10px;"><img  src="{$form.icon}" border="0" /></div>
		{/if}
		<div style="float:left; width:450px;">
		<h2>
		{$dataPanel.fld_form_title.element}
		</h2> 
		<p class="form_desc" style="padding-top:10px;">{$dataPanel.fld_reversion.label}: {$dataPanel.fld_reversion.element} @ {$dataPanel.fld_create_time.element} </p>
		</div>
	</td></tr></table>
	<br/>
	<div style="padding-left:10px;">
	{foreach item=item key=itemName from=$dataPanel}
		{if $itemName!='fld_reversion' && 
			$itemName!='fld_create_time' &&
			$itemName!='fld_form_title'
		}
			{if $item.type eq 'CKEditor' 
			 or $item.type eq 'FormElement' 
			 or $item.type eq 'RichText' 
			 or $item.type eq 'Textarea'  
			 or $item.type eq 'RawData'
			 or $item.type eq 'HTMLPreview'
			 or $item.type eq 'LabelTextarea'
			 or $item.type eq 'LabelImage'
			 or $item.type eq 'IDCardReader'
			 }
				<table  id="{$itemName}_container" class="input_row" style="width:560px;">
				<tr>
				<td style="width:80px;">	
					<label style="text-align:left">{$item.label}</label>
				</td>
				<td >
					{if $errors.$itemName}
					<span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span>
					{elseif $item.description}
					<span class="input_desc" style="width:240px;">{$item.description}</span>			
					{/if}
				</td>
				</tr>
				<tr><td colspan="2" >
					<span class="label_textarea" style="width:655px;">{$item.element}</span>
								
				</td></tr>
				</table>		
			{else}
				<table class="input_row">
				<tr>
				{if $item.label}
				<td >	
					<label style="text-align:left;line-height:24px;">{$item.label}</label>
				</td>
				{/if}
				<td style="text-align:left;">
					<span class="label_text" style="display:block;height:20px;padding-bottom:5px;line-height:24px;overflow:hidden;float:left;{if $item.width}width:{$item.width}px;{else}{if $default_label_text_width}{$default_label_text_width}{else}width:160px;{/if}{/if}">{$item.element}</span>
					{if $errors.$itemName}
					<span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span>
					{elseif $item.description}
					<span class="input_desc" style="width:240px;">{$item.description}</span>			
					{/if}
				</td>
				</tr>
				</table>
			{/if}
		{/if}
	{/foreach}
		
		<div style="height:10px;"></div>
		<p class="input_row" style="height:28px;">
			
			{foreach item=elem from=$actionPanel}
				{$elem.element}
			{/foreach}
		</p>
	</div>
	
		<div style="height:15px;">
		<div id='{$form.name}.load_disp' style="display:none;">
		<img  src="{$image_url}/form_ajax_loader.gif"/>
		</div>
		</div>
	
</div>

</form>
<script>Openbiz.Window.centerDialog(655,625); </script>